package com.example.bawolf.corejava.loggertest;

import com.example.bawolf.effctivejava.bean.TestBean;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

/**
 * @author zhougf
 * @version 1.0
 * @date 2020/04/13
 */
@Slf4j
public class LoggerTest {

    @Test
    public void excetionTest(){
        TestBean testBean = new TestBean.Builder("test").age("10").build();
        log.info("测试异常[[]]", testBean);
        String s = "ss";
        try {
            Integer a =  Integer.valueOf(s);
        }catch (Exception e) {
            e.printStackTrace();
            log.info("异常信息", e);

        }

    }
}
